package ar.fiuba.tp7552.buildadmin.service;

import org.springframework.security.acls.model.Permission;

import ar.fiuba.tp7552.buildadmin.model.auth.BuildPermission;

public enum PermissionType {
	
	ADMIN {
		public Permission getPermission() {
			return BuildPermission.ADMIN;
		}
		
		public Integer getMask() {
			return 32;
		}
	
	},
	GASTO {
		public Permission getPermission() {
			return BuildPermission.GASTO;
		}
		
		public Integer getMask() {
			return 64;
		}
	
	},
	COBRO {
		public Permission getPermission() {
			return BuildPermission.COBRO;
		}
		
		public Integer getMask() {
			return 128;
		}
		
	};
	
	public abstract Permission getPermission();
	public abstract Integer getMask();
}
